package edu.unindra.elearning.form.addin;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import edu.unindra.elearning.util.ButtonImageReflection;

public class ELearningFormMain extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1320811678631342254L;

	private GridBagConstraints grid1;
	private GridBagConstraints grid2;

	private ButtonImageReflection btnPlay;

	private JButton btnExit;
	private JButton btnHelp;
	private JButton btnAbout;

	public ELearningFormMain() {
		initComponents();
	}

	public ButtonImageReflection getBtnPlay() {
		return btnPlay;
	}

	public JButton getBtnExit() {
		return btnExit;
	}

	public JButton getBtnHelp() {
		return btnHelp;
	}

	public JButton getBtnAbout() {
		return btnAbout;
	}

	private void initComponents() {
		setOpaque(false);
		setLayout(new java.awt.GridBagLayout());

		btnPlay = new ButtonImageReflection();
		btnPlay.setFont(new Font("Tahoma", Font.BOLD, 18));
		btnPlay.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		btnPlay.setIcon(new ImageIcon(ELearningFormMain.class
				.getResource("/edu/unindra/elearning/image/myofficelogo.png")));
		btnPlay.setText("Play");
		GridBagConstraints gbc_btnPlay = new GridBagConstraints();
		gbc_btnPlay.insets = new Insets(0, 0, 5, 5);
		gbc_btnPlay.gridx = 1;
		gbc_btnPlay.gridy = 0;
		add(btnPlay, gbc_btnPlay);

		btnExit = new JButton();
		btnExit.setVerticalAlignment(SwingConstants.BOTTOM);
		btnExit.setSelectedIcon(null);
		btnExit.setFont(new Font("Tahoma", Font.BOLD, 14));
		btnExit.setHorizontalAlignment(SwingConstants.TRAILING);
		btnExit.setIcon(new ImageIcon(ELearningFormMain.class
				.getResource("/edu/unindra/elearning/image/Exit.png")));
		btnExit.setText("Exit");
		grid1 = new java.awt.GridBagConstraints();
		grid1.insets = new Insets(0, 0, 5, 5);
		grid1.gridx = 1;
		grid1.gridy = 1;
		add(btnExit, grid1);

		btnHelp = new JButton();
		btnHelp.setVerticalAlignment(SwingConstants.BOTTOM);
		btnHelp.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 13));
		btnHelp.setSelectedIcon(new ImageIcon(
				"D:\\Private\\Campus\\Skripsi\\Iir\\image\\Exit.png"));
		btnHelp.setIcon(new ImageIcon(ELearningFormMain.class
				.getResource("/edu/unindra/elearning/image/Info.png")));
		btnHelp.setText("Help");
		grid2 = new java.awt.GridBagConstraints();
		grid2.insets = new Insets(0, 0, 0, 5);
		grid2.gridx = 0;
		grid2.gridy = 2;
		add(btnHelp, grid2);

		btnAbout = new JButton();
		btnAbout.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 13));
		btnAbout.setIcon(new ImageIcon(ELearningFormMain.class
				.getResource("/edu/unindra/elearning/image/Profile.png")));
		btnAbout.setVerticalAlignment(SwingConstants.BOTTOM);
		btnAbout.setText("About");
		GridBagConstraints gbc_btnAbout = new GridBagConstraints();
		gbc_btnAbout.gridx = 2;
		gbc_btnAbout.gridy = 2;
		add(btnAbout, gbc_btnAbout);

	}
}
